package com.arvin.service.impl;

import com.arvin.mapper.UsersMapper;
import com.arvin.pojo.Users;
import com.arvin.service.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Arvin
 * @date 2021/1/14
 **/
@Service
public class UsersServiceImpl implements UsersService {
    @Resource
    private UsersMapper usersMapper;

    @Override
    public int add(Users users) {
        System.out.println("**************提供者添加操作**************");
        return usersMapper.add(users);
    }

    @Override
    public List<Users> login(Users users) {
        System.out.println("**************提供者登录操作**************");
        return usersMapper.login(users);
    }
}
